//
//  YXHomeTableViewCell.m
//  MockProject
//
//  Created by FanYu on 25/8/2016.
//  Copyright © 2016 niuzhaowang. All rights reserved.
//

#import "YXHomeTableViewCell.h"

@implementation YXHomeTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.titleLabel.textColor = [UIColor colorWithHexString:@"403e3d"];
    
    self.arrowImageView.image = [UIImage imageNamed:@"进入内页icon正常态"];
    self.arrowImageView.highlightedImage = [UIImage imageNamed:@"进入内页icon点击态态"];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
    UIView *selectedBackgroundView = [[UIView alloc] init];
    selectedBackgroundView.backgroundColor = [UIColor colorWithHexString:@"e0dcd9"];
    [self setSelectedBackgroundView:selectedBackgroundView];
}

- (void)setCellModel:(YXSettingCellModel *)cellModel {
    _cellModel = cellModel;
    self.titleLabel.text = cellModel.title;
    self.iconImageView.image = cellModel.iconImage;
}

@end
